package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 事件编号对象 tr_affair
 * 
 * @author ruoyi
 * @date 2024-05-26
 */
@Data
public class TrAffair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private String affairPsonName;

    /** 事件id */
    private Long affairId;

    /** 事件名称 */
    @Excel(name = "事件名称")
    private String affairName;

    /** 相关人员 */
    @Excel(name = "相关人员")
    private String affairPson;

    /** 事件日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "事件日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date affairDate;

    /** 地址 */
    @Excel(name = "地址")
    private String affairAddress;

    /** 事件详情 */
    @Excel(name = "事件详情")
    private String affairInfo;

    /** 照片url */
    @Excel(name = "照片url")
    private String photoUrl;

    /** 文件url */
    @Excel(name = "文件url")
    private String fileUrl;

    public void setAffairId(Long affairId) 
    {
        this.affairId = affairId;
    }

    public Long getAffairId() 
    {
        return affairId;
    }
    public void setAffairName(String affairName) 
    {
        this.affairName = affairName;
    }

    public String getAffairName() 
    {
        return affairName;
    }
    public void setAffairPson(String affairPson) 
    {
        this.affairPson = affairPson;
    }

    public String getAffairPson() 
    {
        return affairPson;
    }
    public void setAffairDate(Date affairDate) 
    {
        this.affairDate = affairDate;
    }

    public Date getAffairDate() 
    {
        return affairDate;
    }
    public void setAffairAddress(String affairAddress) 
    {
        this.affairAddress = affairAddress;
    }

    public String getAffairAddress() 
    {
        return affairAddress;
    }
    public void setAffairInfo(String affairInfo) 
    {
        this.affairInfo = affairInfo;
    }

    public String getAffairInfo() 
    {
        return affairInfo;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("affairId", getAffairId())
            .append("affairName", getAffairName())
            .append("affairPson", getAffairPson())
            .append("affairDate", getAffairDate())
            .append("affairAddress", getAffairAddress())
            .append("affairInfo", getAffairInfo())
            .append("photoUrl", getPhotoUrl())
            .append("fileUrl", getFileUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
